#include <iostream>
#include <string>


class student
{
public:
student()
{
    std::cout<<"无参构造函数!\n";
    printf("this:%p\n",this);
}
Student(int id, const char *name)
{
    std::cout<<"带参构造函数"<< std::endl;
    this->id = id;
    this->name:= name;
}

    Student& Getobj()
    {
        return *this;//取当前对象
    }

private:
    int id;
    std::string name;
};